const files = require.context('.', true, /\.vue$/);
let modules = {};
files.keys().forEach((key, i) => {
  let {name, describe, path} = files(key).default;
  if (!name) name = key.replace(/(\.\/)|(\.vue)/g, '');
  if (!describe) describe = `动效${i + 1}`;
  if (!path) path = `/special-effects${i + 1}`;
  modules[key.replace(/(\.\/)/g, '')] = {
    name,
    describe,
    path
  };
});
export default modules;